<?php
namespace app\admin\controller;
use think\Controller;
use app\index\controller\Events;
// use \GatewayWorker\Lib\Gateway;
/**
 * 
 */
class ManageMenu extends Common
{
	
	function index()
	{
		$vm = model('ManageMenu')->getManageMenuTree();
		return view('index',['manage_menu_list'=>$vm]);
	}
	public function deleteManageMenu($id)
	{
		if (!$this->REQUEST->isAjax()) return "非法操作";
		return model('ManageMenu')->deleteManageMenu($id);
	}
	public function toexamineManageMenu($id,$sta)
	{
		if (!$this->REQUEST->isAjax()) return "非法操作";
		return model('ManageMenu')->toexamineManageMenu($id,$sta);
	}
	public function editManageMenuInfo($id,$nme,$sto,$sup,$ctrl,$alt)
	{
		if (!$this->REQUEST->isAjax()) return "非法操作";
		return model('ManageMenu')->editManageMenuInfo($id,$nme,$sto,$sup,$ctrl,$alt);
	}
	public function addManageMenuInfo($data)
	{
		if (!$this->REQUEST->isAjax()) return "非法操作";
		return model('ManageMenu')->addManageMenuInfo($data);
	}
}
